package com.xjj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjj.entity.School;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author sxy
 * @version 1.0
 * @date 2022/10/20 11:22
 */
@Mapper
public interface SchoolMapper extends BaseMapper<School> {
    @Update("update xjj_school set name=#{name} where id={id}")
    void updateBySchoolId(School school);
    @Select("select * from xjj_school where id = #{schoolId}")
    School getSchoolByKlassId(int schoolId);

}
